package com.brick.entity;

import java.util.List;

public class Order extends BaseEntity {
    /**
     * 订单id
     */
    private String id;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 订单状态 正常：1 取消：0
     */
    private Integer orderState;
    /**
     * 操作日期
     */
    private String dateline;
    /**
     * 修改日期
     */
    private String updateDate;
    /**
     * 状态
     */
    private Integer state;

    private List<OrderDetail> orderDetailList;

    public List<OrderDetail> getOrderDetailList() {
        return orderDetailList;
    }

    public void setOrderDetailList(List<OrderDetail> orderDetailList) {
        this.orderDetailList = orderDetailList;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", orderState=" + orderState +
                ", dateline='" + dateline + '\'' +
                ", updateDate='" + updateDate + '\'' +
                ", state=" + state +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getOrderState() {
        return orderState;
    }

    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }

    public String getDateline() {
        return dateline;
    }

    public void setDateline(String dateline) {
        this.dateline = dateline;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
